package com.cskaoyan._08call;

/**
 * @description:
 * @author: 景天
 * @date: 2023/2/2 11:33
 **/
/*
方法的传参
 */
public class Demo {
    public static void main(String[] args) {
        int a = 1;
        test(a);

        // 输出a的值
        System.out.println("main方法中, a = " + a);
    }

    public static void test(int a) {
        a += 1;
        System.out.println("test方法, a =" + a);
    }
}
